const express = require('express')
const profile = require('../controller/profile')

const router = express.Router()

//获取用户资料
router.get('/:username', profile.getUserName)


//关注用户
router.post('/:username/follow', profile.followUser)


//取消用户
router.delete('/:username/follow', profile.cancelFollowUser)


module.exports = router